﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AddTeam.aspx.cs" Inherits="AB.ServiceDirectory.Design.TeamMaintenance.AddTeam" %>

<%@ Register TagName="TypeOfBusinessLookup" TagPrefix="wuc" Src="~/WebUserControls/Lookup/TypeOfBusinessLookup.ascx" %>
<%@ Register TagPrefix="wuc" TagName="ContactLookupPopup" Src="~/WebUserControls/Lookup/ContactLookupUserControl.ascx" %>
<%@ Register TagPrefix="wuc" TagName="AddressLookupPopup" Src="~/WebUserControls/Lookup/AddressLookup.ascx" %>
<asp:Content ID="head" ContentPlaceHolderID="head" runat="server">
    <link href="../style/AnhPopup.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="ContentTitle" ContentPlaceHolderID="ContentTitle" runat="server">
<h2> Add Team</h2>
</asp:Content>
<asp:Content ID="Content" ContentPlaceHolderID="Content" runat="server">
    <span class="top-right-cornor">
        <asp:Button ID="ButtonSave" runat="server" CssClass="st-button" Text="Save" OnClick="ButtonSave_Click" />
        <asp:Button ID="ButtonBack" runat="server" CausesValidation="False" CssClass="st-button"
            PostBackUrl="~/TeamMaintenance/TeamList.aspx" Text="Back" />
    </span>
    <%--BUSINESS LOOKUP--%>    <%--CONTACT LOOKUP--%>    <%--WEB USER CONTROL--%>
    <asp:Panel ID="DetailsPanel01" runat="server" ClientIDMode="Static">
        <%--Mỗi một dòng có đường kẻ ngang là một div với class st-form-line-noleft--%>
        <div class="st-form-line-noleft">
            <%--Phần bên trái của 1 dòng là 1 label và 1 textbox, checkbox,...--%>
            <div class="half">
                <asp:Label ID="LabelTeamName" runat="server" AssociatedControlID="TextBoxTeamName"
                    CssClass="st-labeltext level1" Text="Team Name">
                    <asp:RequiredFieldValidator ID="RequiredOrganisationName" runat="server" ErrorMessage="*"
                        SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxTeamName" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </asp:Label><asp:TextBox ID="TextBoxTeamName" runat="server" CssClass="st-forminput"
                    Width="200px"></asp:TextBox></div><%--Phần bên phải tương tự nhưng có thêm class là last--%><div class="half last">
                <asp:Label ID="LabelTypeOfBusiness" runat="server" AssociatedControlID="TextBoxTypeOfBusiness"
                    CssClass="st-labeltext level1" Text="Type of Business">
                </asp:Label><asp:TextBox ID="TextBoxTypeOfBusiness" runat="server" CssClass="st-forminput st-disable"
                    Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton ID="ButtonTypeOfBussiness"
                        runat="server" CausesValidation="False" CssClass="hg-blue" Text="Lookup" OnClick="ButtonTypeOfBussiness_Click" /><asp:HiddenField
                            ID="HiddenFieldBusinessId" runat="server" />
            </div>
            <%--Bắt buộc phải có phần này sau 2 thẻ div có class là half--%><div class="clear">
            </div>
        </div>
        <%--Mỗi một dòng có đường kẻ ngang là một div với class st-form-line-noleft--%><div
            class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelShortDescription" runat="server" AssociatedControlID="TextBoxShortDescription"
                    CssClass="st-labeltext level1" Text="Team Short Description">
                    
                </asp:Label><asp:TextBox ID="TextBoxShortDescription" runat="server" CssClass="st-forminput"
                    Rows="3" TextMode="MultiLine" Width="200px"></asp:TextBox></div><div class="half last">
                <asp:Label ID="LabelSicCode" runat="server" AssociatedControlID="TextBoxSicCode"
                    CssClass="st-labeltext level1" Text="SIC"></asp:Label><asp:TextBox ID="TextBoxSicCode"
                        runat="server" CssClass="st-forminput st-disable" Width="50px" ReadOnly="true"></asp:TextBox><br /></div><div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelLeadContact" runat="server" AssociatedControlID="TextBoxLeadContact"
                    CssClass="st-labeltext level1" Text="Lead Contact"></asp:Label><asp:TextBox ID="TextBoxLeadContact"
                        runat="server" CssClass="st-forminput st-disable" Width="150px" ReadOnly="True"></asp:TextBox><asp:LinkButton
                            ID="ButtonContactLookup" runat="server" CausesValidation="False" CssClass="hg-blue"
                            Text="Lookup" OnClick="ButtonContactLookup_Click" /><asp:HiddenField ID="HiddenFieldContactId"
                                runat="server" />
            </div>
            <div class="half last">
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="Label2" runat="server" AssociatedControlID="RadioButtonList1" CssClass="st-labeltext level1-5"
                    Text="Copy address from"></asp:Label><asp:RadioButtonList ID="RadioButtonList1" runat="server"
                        CssClass="left" RepeatDirection="Horizontal" Width="165px">
                        <asp:ListItem>Organisation</asp:ListItem><asp:ListItem>Parent</asp:ListItem></asp:RadioButtonList><br /><br /><asp:Label ID="LabelAddressLine1" runat="server" AssociatedControlID="TextBoxAddressLine1"
                    CssClass="st-labeltext level1" Text="Address Line 1">
                    <asp:RequiredFieldValidator ID="RequiredAddressLine1" runat="server" ErrorMessage="*"
                        SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxAddressLine1" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </asp:Label><asp:TextBox ID="TextBoxAddressLine1" runat="server" CssClass="st-forminput"
                    Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine2" runat="server" AssociatedControlID="TextBoxAddressLine2"
                    CssClass="st-labeltext level1" Text="Address Line 2"></asp:Label><asp:TextBox ID="TextBoxAddressLine2"
                        runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelAddressLine3" runat="server" AssociatedControlID="TextBoxAddressLine3"
                    CssClass="st-labeltext level1" Text="Address Line 3"></asp:Label><asp:TextBox ID="TextBoxAddressLine3"
                        runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="half last">
                <asp:Label ID="LabelFullDescription" runat="server" AssociatedControlID="TextBoxFullDescription"
                    CssClass="st-labeltext level1" Text="Full Description"></asp:Label><asp:TextBox ID="TextBoxFullDescription"
                        runat="server" CssClass="st-forminput" Rows="3" TextMode="MultiLine" Width="200px"></asp:TextBox><br /><br /><asp:Label ID="LabelPhoneNumber" runat="server" AssociatedControlID="TextBoxPhoneNumber"
                    CssClass="st-labeltext level1" Text="Phone Number">
                   
                </asp:Label><asp:TextBox ID="TextBoxPhoneNumber" runat="server" CssClass="st-forminput"
                    Width="200px"></asp:TextBox></div><div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelPostcode" runat="server" AssociatedControlID="TextBoxPostcode"
                    CssClass="st-labeltext level1" Text="Postcode">
                    <asp:RequiredFieldValidator ID="RequiredPostcode" runat="server" ErrorMessage="*"
                        SetFocusOnError="true" ForeColor="red" ControlToValidate="TextBoxPostcode" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </asp:Label><asp:TextBox ID="TextBoxPostcode" runat="server" CssClass="st-forminput"
                    Width="150px"></asp:TextBox><asp:LinkButton ID="ButtonPostcodeLookup" runat="server"
                        CausesValidation="False" CssClass="hg-blue" Text="Lookup" OnClick="ButtonPostcodeLookup_Click" /><asp:HiddenField
                            ID="HiddenFieldAddressId" runat="server" />
            </div>
            <div class="half last">
                <asp:Label ID="LabelFax" runat="server" AssociatedControlID="TextBoxFax" CssClass="st-labeltext level1"
                    Text="Fax">
                        
                </asp:Label><asp:TextBox ID="TextBoxFax" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="clear">
            </div>
        </div>
        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelCityTown" runat="server" AssociatedControlID="TextBoxCityTown"
                    CssClass="st-labeltext level1" Text="Town/Village/City"></asp:Label><asp:TextBox
                        ID="TextBoxCityTown" runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="half last">
                <asp:Label ID="LabelEmail" runat="server" AssociatedControlID="TextBoxEmail" CssClass="st-labeltext level1"
                    Text="Email"></asp:Label><asp:TextBox ID="TextBoxEmail" runat="server" CssClass="st-forminput"
                        Width="200px"></asp:TextBox></div><div class="clear">
            </div>
        </div>

               <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="County" runat="server" 
                    CssClass="st-labeltext level1" Text="County" AssociatedControlID="TextBoxCounty"></asp:Label><asp:TextBox ID="TextBoxCounty"
                        runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="half last">
                <asp:Label ID="LabelWebAddress" runat="server" AssociatedControlID="TextBoxWebAddress"
                    CssClass="st-labeltext level1" Text="Web Address"></asp:Label><asp:TextBox ID="TextBoxWebAddress"
                        runat="server" CssClass="st-forminput" Width="200px"></asp:TextBox></div><div class="clear">
            </div>
        </div>

        <div class="st-form-line-noleft">
            <div class="half">
                <asp:Label ID="LabelCountry" runat="server" CssClass="st-labeltext level1" Text="Country"></asp:Label><asp:DropDownList
                    ID="DropDownListNationCounty" runat="server" CssClass="st-forminput" Width="200px"
                    DataTextField="CountryName" DataValueField="CountryId">
                </asp:DropDownList>
            </div>
          
        </div>
        <br />
        <%--BUSINESS LOOKUP--%>
        <wuc:TypeOfBusinessLookup ID="BusinessLookup" runat="server" TextBoxBusinessNameID="TextBoxTypeOfBusiness"
            TextBoxSicCodeID="TextBoxSicCode" HiddenFieldBusinessId="HiddenFieldBusinessId"
            MaximumRows="5" />
        <%--CONTACT LOOKUP--%>
        <wuc:ContactLookupPopup ID="ContactLookupPopup" runat="server" TextBoxResultID="TextBoxLeadContact"
            HiddenFieldResultID="HiddenFieldContactId" MaximumRows="5" />
        <%--WEB USER CONTROL--%><%--ADDRESS - POSTCODE LOOKUP--%><wuc:AddressLookupPopup
            ID="AddressLookupPopup" TextBoxPostcodeID="TextBoxPostcode" HiddenFieldAddressID="HiddenFieldAddressId"
            TextBoxAddressLine1ID="TextBoxAddressLine1" TextBoxAddressLine2ID="TextBoxAddressLine2"
            TextBoxAddressLine3ID="TextBoxAddressLine3" runat="server" />
    </asp:Panel>
</asp:Content>
